<?php

namespace app\communal\controller;

use app\Api;
use app\model\ServerArea as ModelServerArea;


class ServerArea extends Api
{
    public function _initialize()
    {
        parent::_initialize();
    }


    /*
     * 服务地区列表
     * URI：/communal/serverArea.list
     */
    public function serverAreaList()
    {

        $arr_list = ModelServerArea::getInstance()->toSelect([], 'id,parent_id as parentId,name,level ');
        _returnData(['serverAreaList' => $arr_list]);
    }

}
